package com.yuju.sys.dao.entity;

import com.yuju.persist.base.entity.BaseEntity;
import java.io.Serializable;
import java.util.Date;

public class SysParam extends BaseEntity implements Serializable {
    /**
     *  系统参数代码,所属表字段为sys_param.code
     */
    private String code;

    /**
     *  参数类型：1标准参数，2PMS专用参数，3业主专用参数，4酒店专用参数,所属表字段为sys_param.type
     */
    private Byte type;

    /**
     *  参数值,所属表字段为sys_param.value
     */
    private String value;

    /**
     *  参数值2,所属表字段为sys_param.value2
     */
    private String value2;

    /**
     *  参数值3,所属表字段为sys_param.value3
     */
    private String value3;

    /**
     *  参数值4,所属表字段为sys_param.value4
     */
    private String value4;

    /**
     *  是否可编辑，用于限定集团级用户是否可以编辑，1可编辑，2不可编辑，默认值2,所属表字段为sys_param.editabled
     */
    private Byte editabled;

    /**
     *  1系统、2集团、3酒店,所属表字段为sys_param.level
     */
    private Byte level;

    /**
     *  是否只读，用于限制是否可以同步到集团参数集，1可以同步，2不可同步，默认值1,所属表字段为sys_param.readonly
     */
    private Byte readonly;

    /**
     *  参数描述,所属表字段为sys_param.name
     */
    private String name;

    /**
     *  显示顺序，排序,所属表字段为sys_param.orderby
     */
    private Byte orderby;

    /**
     *  1下拉列表  2输入项,所属表字段为sys_param.field_type
     */
    private Byte fieldType;

    /**
     *  字段可选值,多值之间用逗号隔开,所属表字段为sys_param.field_values
     */
    private String fieldValues;

    /**
     *  字段长度,所属表字段为sys_param.field_length
     */
    private Byte fieldLength;

    /**
     *  是否可用，1可用，2不可用，默认值1,所属表字段为sys_param.is_enabled
     */
    private Byte isEnabled;

    /**
     *  组标记 ，用于标识多个相关联的参数同属一个组,所属表字段为sys_param.param_group
     */
    private String paramGroup;

    /**
     *  父系统参数代码,所属表字段为sys_param.parent_code
     */
    private String parentCode;

    /**
     *  创建时间,所属表字段为sys_param.gmt_create
     */
    private Date gmtCreate;

    /**
     *  修改时间,所属表字段为sys_param.gmt_modified
     */
    private Date gmtModified;

    private static final long serialVersionUID = 1L;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Byte getType() {
        return type;
    }

    public void setType(Byte type) {
        this.type = type;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public String getValue2() {
        return value2;
    }

    public void setValue2(String value2) {
        this.value2 = value2;
    }

    public String getValue3() {
        return value3;
    }

    public void setValue3(String value3) {
        this.value3 = value3;
    }

    public String getValue4() {
        return value4;
    }

    public void setValue4(String value4) {
        this.value4 = value4;
    }

    public Byte getEditabled() {
        return editabled;
    }

    public void setEditabled(Byte editabled) {
        this.editabled = editabled;
    }

    public Byte getLevel() {
        return level;
    }

    public void setLevel(Byte level) {
        this.level = level;
    }

    public Byte getReadonly() {
        return readonly;
    }

    public void setReadonly(Byte readonly) {
        this.readonly = readonly;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Byte getOrderby() {
        return orderby;
    }

    public void setOrderby(Byte orderby) {
        this.orderby = orderby;
    }

    public Byte getFieldType() {
        return fieldType;
    }

    public void setFieldType(Byte fieldType) {
        this.fieldType = fieldType;
    }

    public String getFieldValues() {
        return fieldValues;
    }

    public void setFieldValues(String fieldValues) {
        this.fieldValues = fieldValues;
    }

    public Byte getFieldLength() {
        return fieldLength;
    }

    public void setFieldLength(Byte fieldLength) {
        this.fieldLength = fieldLength;
    }

    public Byte getIsEnabled() {
        return isEnabled;
    }

    public void setIsEnabled(Byte isEnabled) {
        this.isEnabled = isEnabled;
    }

    public String getParamGroup() {
        return paramGroup;
    }

    public void setParamGroup(String paramGroup) {
        this.paramGroup = paramGroup;
    }

    public String getParentCode() {
        return parentCode;
    }

    public void setParentCode(String parentCode) {
        this.parentCode = parentCode;
    }

    public Date getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public Date getGmtModified() {
        return gmtModified;
    }

    public void setGmtModified(Date gmtModified) {
        this.gmtModified = gmtModified;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", code=").append(code);
        sb.append(", type=").append(type);
        sb.append(", value=").append(value);
        sb.append(", value2=").append(value2);
        sb.append(", value3=").append(value3);
        sb.append(", value4=").append(value4);
        sb.append(", editabled=").append(editabled);
        sb.append(", level=").append(level);
        sb.append(", readonly=").append(readonly);
        sb.append(", name=").append(name);
        sb.append(", orderby=").append(orderby);
        sb.append(", fieldType=").append(fieldType);
        sb.append(", fieldValues=").append(fieldValues);
        sb.append(", fieldLength=").append(fieldLength);
        sb.append(", isEnabled=").append(isEnabled);
        sb.append(", paramGroup=").append(paramGroup);
        sb.append(", parentCode=").append(parentCode);
        sb.append(", gmtCreate=").append(gmtCreate);
        sb.append(", gmtModified=").append(gmtModified);
        sb.append("]");
        return sb.toString();
    }
}